home *** CD-ROM | disk | FTP | other *** search
/ TPUG - Toronto PET Users Group / TPUG Users Group CD / TPUG Users Group CD.iso / AMIGA / AMICUS / AMICUS15.ADF / AmigaBasicProgs / Stats.TXT < prev    next >
Text File  |  1988-04-20  |  4KB  |  90 lines

  1. Softball Stats
  2. (c) 1986 Brad Shapiro
  3. MAY NOT BE SOLD
  4.  
  5.  
  6. This program will allow the user to enter up to 20 players of a softball
  7. team along with their associated stats: At Bats, Hits, Runs, RBI, BB.
  8. The program will calculate batting averages. You have the option of sorting
  9. the output via the menu bar.
  10.  
  11. Hints/Tips/Do's/Dont's
  12. ======================
  13.  
  14. You'll notice that the "Project" menu has only two selections: Print and
  15. Quit. The program automatically loads and saves stats to a data file called
  16. "STATISTICS". Make sure the program DOES NOT have the same name as the
  17. data file. When you run the program, it will check for the data file. If
  18. the file does not exist, it will create it. Stats are read into memory
  19. when you run the program.
  20.  
  21. The next menu is "Add new..." and the choices are Players and Stats.
  22. If you are adding new players in the middle of the season, make sure you
  23. enter the players FIRST and then the stats for the whole team. Each time you
  24. select "Add new...Stats" the game counter is incremented.
  25.  
  26. When you are done adding new players, hit RETURN or ESCAPE at the Name
  27. prompt to return to the top of the program.
  28.  
  29. When you add new stats, you will be prompted "Did XXX play?" If the player
  30. played simply hit RETURN. If the player did not play hit ESCAPE or enter
  31. anything other than "Y" in the left-most position of your response.
  32. Answering YES to the response prompts you for game stats for that player.
  33. After you have entered the stats you will get a "Is this correct?" prompt.
  34. If the player did not play, the program will loop to the next player.
  35. When you are done entering stats the program automatically returns to the
  36. top of the program.
  37.  
  38. The "Sort by..." menu selection determines how your stats will be sorted
  39. for printout. Stats are sorted when you select the PRINT option from the
  40. Project menu.
  41.  
  42. HINT: If you plan to sort the stats by something other than PLAYER (eg you
  43.       want a list of the team by AVERAGE) get a screen printout sorted by
  44.       PLAYER first. Then go back and select AVERAGE and perform the print-
  45.       out again. Then your stats will be sorted primarily by AVERAGE and
  46.       secondarily by PLAYER.
  47.  
  48. When you PRINT you get screen prompts asking where you want the data
  49. displayed (Screen or Printer) and whether you want Cumulative stats or
  50. stats for a specific game. The program only keeps TEAM TOTALS for
  51. cumulative stats, NOT for each game. If you select a sort by PLAYER the
  52. stats are printed/displayed in ascending order (A-Z). If you select ANY
  53. other type of sort the stats are printed/displayed in DESCENDING order.
  54. (ie a sort by AVERAGE will produce a printout with the best batting average
  55. at the top and the worst at the bottom.)
  56.  
  57. KNOWN BUGS
  58. ==========
  59. None....<<<BUT>>>
  60. If you run out of memory (very possible since the array is so damn large)
  61. here is a fix:
  62. Put these two lines at the top of the program:
  63. CLEAR ,25000
  64. CLEAR ,50000
  65.  
  66. Put this line in the "Quit" subroutine:
  67. CLEAR ,25000
  68.  
  69. That should eliminate memory problems.
  70.  
  71.  
  72. IN GENERAL
  73. ==========
  74. This program has very little error checking. I was in a big hurry to write
  75. it and I HATE error checking routines. So help the program out: Don't try
  76. to crash the program and don't put in a faulty/write-protected/full disk.
  77.  
  78. If this program resembles a softball statistics program you may have seen
  79. in COMPUTE! or COMPUTE!'s GAZETTE, it really isn't. I couldn't find the
  80. issue with the softball program in it, so I had to write this on from
  81. scratch. Besides, this one is better -- trust me.
  82.  
  83. If you happen to find any bugs in this I would appreciate your telling me
  84. about them you can drop me a line via E-Mail, my user id is VIDEO.
  85.  
  86. Enjoy it,
  87. Brad
  88.  
  89.  
  90.